import { Language, Key } from '@/enums'

export const getLanguage = () => {
    return localStorage.getItem(Key.Language) ?? Language.zhCN
}

export const setLanguage = (language: string): void => {
    localStorage.setItem(Key.Language, language)
}

export const getCurrentRole = () => {
    return localStorage.getItem(Key.CurrentRole)??''
}

export const setCurrentRole = (role: string): void => {
    localStorage.setItem(Key.CurrentRole, role)
}


